<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Vue 测试实例 - 菜鸟教程(runoob.com)</title>
<style>
	article{
			width: 100%;
			height: 600px;
			display: flex;
			display: -webkit-flex;
			-webkit-flex-direction: row; /* Safari */
  			flex-direction:         row;
  			-webkit-flex-wrap: wrap; /* Safari */
  			flex-wrap:         wrap;
  			-webkit-justify-content: center; /* Safari */
  			justify-content:center;
  			-webkit-align-items: center; /* Safari */
			align-items: center;
			background-color: 	#989898;
	}
	div{
		margin-left:5px;
		border: 1px solid #800000;
		text-align: center;
	}
</style>
<script src="https://unpkg.com/vue/dist/vue.js"></script>
</head>
<body>
	<article>
<div id="app">
  <p>{{ message }}</p>
</div>
<div id="app-2">
  <span v-bind:title="message">
    鼠标悬停几秒钟查看此处动态绑定的提示信息！
  </span>
</div>
<div id="app-5">
  <p>{{ message }}</p>
  <button v-on:click="reverseMessage">逆转消息</button>
</div>
<div id="app-6">
  <p>{{ message }}</p>
  <input v-model="message">
</div>
</aeticle>
<script>

var app = new Vue({
  el: '#app',
  data: {
    message: 'Hello Vue!'
  }
})
var app2 = new Vue({
  el: '#app-2',
  data: {
    message: '页面加载于 ' + new Date()
  }
})
var app5 = new Vue({
  el: '#app-5',
  data: {
    message: 'Hello Vue.js!'
  },
  methods: {
    reverseMessage: function () {
      this.message = this.message.split('').reverse().join('')
    }
  }
})
var app6 = new Vue({
  el: '#app-6',
  data: {
    message: 'Hello Vue!'
  }
})
</script>
</body>
</html>